<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<div th:replace="fragment/headFragment:: head"></div>
<body class="cbp-spmenu-push">
<div class="main-content">
    <!--left-fixed -navigation-->
    <div th:replace="fragment/left_sidebar:: left_sidebar"></div>
    <!--left-fixed -navigation-->
    <!-- header-starts -->
    <div th:replace="fragment/header_section :: header_section"></div>
    <!-- //header-ends -->
    <!-- main content start-->
    <div id="page-wrapper">
        <div class="main-page">
            <form th:action="@{/roleManage/addSubmit(roleid=${rm.getRoleid()},current=${pagesCount},size=5)}" method="post">
                <div class="row-one">
                    <div class="col-md-3">
                        角色名
                    </div>
                    <div class="col-md-9">
                        <input name="rolename" th:attr="value=${rm.rolename}" required>
                    </div>
                </div>
                <div class="row-one">
                    <div class="col-md-3">
                        角色数
                    </div>
                    <div class="col-md-9">
                        <input type="number" name="rolecount" th:attr="value=${rm.rolecount}" oninput="if(value<=0)value=1">
                    </div>
                </div>
                <div class="row-one">
                    <div class="col-md-3">
                        说明
                    </div>
                    <div class="col-md-9">
                        <input name="roledesc" th:attr="value=${rm.roledesc}">
                    </div>
                </div>
                <div class="row-one">
                    <div class="col-md-3">
                        职责
                    </div>
                    <div class="col-md-9">
                        <input name="power" th:attr="value=${rm.power}">
                    </div>
                </div>
                <input type="submit" name="submit" value="保存">
                <a th:href="@{/roleManage/index(current=1,size=5)}"><button type="button">返回</button></a>
            </form>
        </div>
    </div>
    <!--footer-->
    <div class="footer">
        <p>Copyright &copy; 2021.Igeek All rights reserved.</p>
    </div>
    <!--//footer-->
</div>
<!-- Classie -->
<script src="js/classie.js"></script>
<script>
    var menuLeft = document.getElementById( 'cbp-spmenu-s1' ),
        showLeftPush = document.getElementById( 'showLeftPush' ),
        body = document.body;

    showLeftPush.onclick = function() {
        classie.toggle( this, 'active' );
        classie.toggle( body, 'cbp-spmenu-push-toright' );
        classie.toggle( menuLeft, 'cbp-spmenu-open' );
        disableOther( 'showLeftPush' );
    };


    function disableOther( button ) {
        if( button !== 'showLeftPush' ) {
            classie.toggle( showLeftPush, 'disabled' );
        }
    }
</script>
<!--scrolling js-->
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>
<!--//scrolling js-->
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.js"> </script>
</body>
</html>